

import org.apache.lucene.index.*;

public class TermVector implements Comparable{

	Term term;
	int tf;
	int df;
	double weight;
	
	public TermVector(Term term, int t, int d, double w)
	{
		this.term=term;
		tf=t;
		df=d;
		weight=w;
	}
	
	public int compareTo(Object other) {
		
		return this.weight>((TermVector)other).weight? -1:(this.weight==((TermVector)other).weight? 0:1);
	}


}
